<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 响应式五金械设备类网站模板
// +----------------------------------------------------------------------
namespace addons\mobandgsc;

use think\Addons;

class Mobandgsc extends Addons
{

    //安装
    public function install()
    {
        return true;
    }

    //卸载
    public function uninstall()
    {
        return true;
    }

    /**
     * 插件启用方法
     * @return bool
     */
    public function enable()
    {
        return true;
    }

    /**
     * 插件禁用方法
     * @return bool
     */
    public function disable()
    {
        return true;
    }

    public function appInit()
    {
        //此函数需要全局调用
        if (is_file(ADDON_PATH . 'mobandgsc' . DS . 'function.php')) {
            include_once ADDON_PATH . 'mobandgsc' . DS . 'function.php';
        }
    }
}
